package HOANGVIETANH_EX4;

public class Models {
	public boolean CheckI(Entity en) {
		if (en.CheckI()) {
			return false;
		} else {
			return true;
		}
	}

	public void Calcular1(Entity en) {
		if (en.getThang() >= 1 && en.getThang() <= 12) {
			switch (en.getThang()) {
			case 4:
			case 6:
			case 9:
			case 11:
				break;

			case 2: {
				if (en.getNam() % 4 == 0) {
					System.out.println("Thang co 29 ngay");
				} else {
					System.out.println("Thang co 28 ngay");
				}

			}
				break;
			case 1:
			case 3:
			case 5:
			case 7:
			case 8:
			case 10:
			case 12:
				System.out.println("Th�ng co 31 ngay");
				break;
			}
		}
	}

	public void Calcular2(Entity en) {

	}

}


